﻿namespace FrontEnd.Views
{
	using System.Collections.Generic;
	using System.Web.Mvc;
	using System.Web.Mvc.Html;

	public static class FormHtmlExtensions
	{		
		public static MvcForm BeginIdentificableForm(this HtmlHelper htmlHelper, string formId)
		{
			IDictionary<string, object> htmlAttributes =
				new Dictionary<string, object>
					{
						{"id", formId}
					};

			return htmlHelper.BeginForm(/*actionName*/null, /*controllerName*/null,
				/*routeValues*/null, /*method*/FormMethod.Post, htmlAttributes);
		}
	}
}
